/*
 * tcpstat.cc
 *
 *  Created on: Dec 16, 2014
 *      Author: root
 */
/******************************************************************************************************************/
#include <stdio.h>
#include "tcpstat.h"
#include "../util/define.h"
/******************************************************************************************************************/
TcpStat::TcpStat() {
	this->c_state = TCP_INVALID_STATE;
	this->s_state = TCP_INVALID_STATE;
	this->cs_psh = 0;
	this->sc_psh = 0;
	this->s_init_win = 0;
}
void TcpStat::ToString() {
	char info[INFO_LEN] = { 0 };
	sprintf(info, "%d, %d, %d, %d, %d, %d, %s", this->cs_pkts, this->cs_bytes,
			this->sc_pkts, this->sc_bytes, this->cs_psh, this->sc_psh,
			this->label);
	printf("%s\n", info);
}
/******************************************************************************************************************/
